<template>
  <div 
    v-show="isShow" 
    class="gzhb_loading"
    :class="[
      isShow ? 'gzhb_loading_active' : ''
    ]">
    <van-loading type="spinner" color="#1989fa" />
  </div>
</template>

<script>
export default {
  name: 'GzhbLoading',
  props:{
    isShow:{
      type: Boolean,
      default: true
    }
  }
}
</script>

<style lang="less" scoped>
.gzhb_loading{
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: -1;
  background-color: rgba(255, 255, 255, 0.5)
}
.gzhb_loading_active{
  z-index: 999;
}
</style>